import pygame
import 配置
import random

class 池塘类(pygame.sprite.Sprite):
    def __init__(self):
        pygame.sprite.Sprite.__init__(self)
        大图片=pygame.image.load(配置.图片路径['池塘图片'])
        self.image = pygame.transform.scale(大图片.subsurface((0, 0), (769, 409)), (77, 41))
        self.rect = self.image.get_rect()
        self.rect.x = random.randrange(50,配置.画面大小[0]-50)
        self.rect.y = random.randrange(50,配置.画面大小[1]-50)

    def draw(self,screen):
        screen.blit(self.image,self.rect)